package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.MallGoodsLabelEnums;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sc_mall_goods_label")
@ApiModel(value = "sc_mall_goods_label 对象", description = "")
public class MallGoodsLabel extends SuperEntity implements Serializable {
    @ApiModelProperty(value = "启用状态")
    private Boolean status;

    @ApiModelProperty(value = "权重")
    private Integer sort;

    @ApiModelProperty(value = "标签类型, NEW_LABEL,新品标签,ACTIVITY_LABEL,活动标签")
    private MallGoodsLabelEnums labelType;

    @ApiModelProperty(value = "标签名称")
    private String labelName;

    @ApiModelProperty(value = "标签图片")
    private String labelImage;

    @ApiModelProperty(value = "持续时间")
    private Integer duration;

    @ApiModelProperty("开始时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date endTime;
}
